#ifndef SHA1_H_
#define SHA1_H_

#include <string>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
using namespace std;

class Sha1 {

private:
	void appendIntToStr(string& palabra, unsigned int entero);
	void appendIntToStr(string& palabra, unsigned long long int entero);
	int strToInt(const string& arg);
	string intToHexaStr(int arg);
	string intToMemStr(int arg);
	int leftrotate(unsigned int x, unsigned int y);

public:
	Sha1();
	string calcularSha1(const string&, bool hexa = false);
	virtual ~Sha1();
};

#endif /* SHA1_H_ */
